@mixin linear-gradient($from, $to) {
  background-image: -moz-linear-gradient(to right, $from, $to);
  background-image: -o-linear-gradient(to right, $from, $to);
  background-image: -webkit-gradient(linear, left top, right top, color-stop(0, $from), color-stop(1, $to));
  background-image: -webkit-linear-gradient(to right, $from, $to);
  background-image: -ms-linear-gradient(to right, $from, $to);
  background-image: linear-gradient(to right, $from, $to);
}
.table-title {
  position: relative;
  font-size: 22px;
  min-height: 22px;
  color: #FFF;
  font-weight: bold;
  text-align: center;
  margin-bottom: 16px;
}
.table-info {
  .el-table {
    background: none;
    th {
      padding: 3px 0;
      background-color: #2E2F4B;
      border: none;
      font-size: 16px;
      color: #FFF;
    }
    tr {
      background: none;
    }
    td {
      font-size: 16px;
      color: #7F7FB5;
      padding: 7px 0;
      border-bottom: 1px dashed rgba(#7F7FB5, 0.5);
    }
    &::before {
      display: none;
    }
  }
  .el-table--enable-row-hover {
    .el-table__body {
      tr {
        &:hover {
          > td {
            background-color: #2B2C45;
          }
        }
      }
    }
  }
  .el-table__footer-wrapper {
    tbody {
      td {
        background: none;
        border-top: 0;
        color: $--color-primary;
      }
    }
  }
}
.table-info-v2 {
  table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
  }
  thead {
    th {
      padding: 3px 0;
      background-color: #2B2C45;
      border: none;
      font-size: 16px;
      color: #FFF;
    }
  }
  tbody {
    td {
      font-size: 16px;
      color: #7F7FB5;
      padding: 7px 4px;
      height: 36px;
      border-bottom: 1px dashed rgba(#7F7FB5, 0.5);
      border-right: 1px solid rgba(#7F7FB5, 0.5);
      color: #7F7FB5;
      &:last-child {
        border-right: none;
      }
    }
  }
}
.table-split-cell {
  position: relative;
  background: url('') no-repeat center/ 100% 100%;
  [class^=name-] {
    position: absolute;
    font-size: 12px;
    color: '#7F7FB5'
  }
  .name-left { 
    left: 5px;
    bottom: 5px;
  }
  .name-right {
    right: 5px;
    top: 5px;
  }
}

.table-info-sm {
  .el-table {
    thead {
      th {
        padding: 3px 0;
        border: none;
        font-size: 12px;
        color: #FFF;
      }
    }
    tbody {
      td {
        padding: 7px 0;
        font-size: 12px;
      }
    }
  }
}

.table-info-bg {
  .el-table {
    .el-table__body {
      border-spacing: 0 4px
    }
    tbody { 
      tr {
        position: relative;
        @include linear-gradient(rgba(#AF5167, 0), rgba(#18B4A0, 0.34));
        td {
          padding: 5px 0;
          color: #FFF;
          border: none;
        }
        &:nth-child(1) {
          @include linear-gradient(rgba(#AF5167, 0), #B15068);
        }
        &:nth-child(2) {
          @include linear-gradient(rgba(#AF5167, 0), #B38B4F);
        }
        &:nth-child(3) {
          @include linear-gradient(rgba(#AF5167, 0), #6550A7);
        }
      }
    }
  }
}
